package com.cpi.cornpp.biweeks.view
;

import com.cpi.cornpp.common.view.IBaseView;

public class BiWeekView implements IBaseView{

	/**
	 * 
	 */
	private static final long serialVersionUID = -464735901823146076L;

	private int biweekPeriodId;
	
	private String shortName;
	
	private String description;
	
	private int biweek;
	
	private int month;
	
	private int year;
	
	private boolean defaultInit;
	
	private boolean defaultFinish;
	
	/**
	 * 
	 * Default Constructor
	 */
	public BiWeekView() {		
	}
	
	public BiWeekView(int id){
		this.biweekPeriodId = id;
	}

	public int getBiweek() {
		return biweek;
	}

	public void setBiweek(int biweek) {
		this.biweek = biweek;
	}

	public int getBiweekPeriodId() {
		return biweekPeriodId;
	}

	public void setBiweekPeriodId(int biweekPeriodId) {
		this.biweekPeriodId = biweekPeriodId;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getMonth() {
		return month;
	}

	public void setMonth(int month) {
		this.month = month;
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public int getYear() {
		return year;
	}

	public void setYear(int year) {
		this.year = year;
	}

	public boolean isDefaultFinish() {
		return defaultFinish;
	}

	public void setDefaultFinish(boolean defaultFinish) {
		this.defaultFinish = defaultFinish;
	}

	public boolean isDefaultInit() {
		return defaultInit;
	}

	public void setDefaultInit(boolean defaultInit) {
		this.defaultInit = defaultInit;
	}

	public boolean equals(Object obj) {
		if(!(obj instanceof BiWeekView))
			return false;
		BiWeekView object = (BiWeekView)obj;
		return (object.getBiweekPeriodId() == this.getBiweekPeriodId());		
	}

	
}
